#include "header.h"

terrain::terrain() //default constructor, makes blank black space.
{
  fcolor = 0;
  bcolor = 8;
  walkable = false;
  shape = ' ';
}

terrain::terrain(int fc, int bc, bool w, char s) //specific value constructor
{
  fcolor = fc;
  bcolor = bc;
  walkable = w;
  shape = s;
}

void terrain::setSpace(int fc, int bc, bool w, char s) //Sets a space, exactly the same as the specific value constructor.
{
  fcolor = fc;
  bcolor = bc;
  walkable = w;
  shape = s;
}

int terrain::color()
{
  return fcolor + (bcolor * 16);
}
